package com.ikaros.dao;

import com.ikaros.entity.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 用户订单
 * Created by Ikaros on 2017/9/24.
 */
public interface OrderMasterDao extends JpaRepository<OrderMaster,String>{
    /**
     * 根据openid查找该用户的订单
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
